export const PageItem = {
  title: '整体健康状况信息表',
  commUrl: 'https://anfine.huasun-healthcare.com:80/api/assess_general/assessGeneralInfo',
}

// 一般健康状况信息字段配置
export const assessGeneralFields = {
  assessid: { show: true, label: '全面评估ID', edit: true, type: 'text', required: true },
  name: { show: true, label: '姓名', edit: true, type: 'text', readonly: false, required: true },
  idNumber: { show: true, label: '证件号码', edit: true, type: 'text', readonly: false, required: true },
  
  // 生命体征相关字段
  bloodpressNum: { show: true, label: '生命体征-血压值', edit: true, type: 'text' },
  bloodpressPosi: { show: true, label: '生命体征-血压测量体位', edit: true, type: 'picker', dictCode: 'bloodpress_posi' },
  pulseNum: { show: true, label: '生命体征-脉搏(次/min)', edit: true, type: 'number', min: 0, max: 200 },
  pulsePosi: { show: true, label: '生命体征-脉搏测量位置', edit: true, type: 'picker', dictCode: 'pulse_posi' },
  temperNum: { show: true, label: '生命体征-体温数值', edit: true, type: 'number', min: 30, max: 45 },
  temperType: { show: true, label: '生命体征-体温测量方式', edit: true, type: 'picker', dictCode: 'temper_type' },
  otherDsc1: { show: true, label: '生命体征-其他', edit: true, type: 'textarea' },
  
  // 意识/神志相关字段
  eyesNum: { show: true, label: '意识/神志-睁眼反应评分', edit: true, type: 'number', min: 1, max: 4 },
  speakNum: { show: true, label: '意识/神志-言语反应评分', edit: true, type: 'number', min: 1, max: 5 },
  motionNum: { show: true, label: '意识/神志-运动反应评分', edit: true, type: 'number', min: 1, max: 6 },
  gcsNum: { show: true, label: '意识/神志-GCS评分', edit: true, type: 'number', min: 3, max: 15 },
  pupilReflex: { show: true, label: '意识/神志-瞳孔对光反射', edit: true, type: 'picker', dictCode: 'pupil_reflex' },
  otherDsc2: { show: true, label: '意识/神志-其他', edit: true, type: 'textarea' },
  
  // 身体系统相关字段
  appetiteDsc: { show: true, label: '食欲饮食', edit: true, type: 'textarea' },
  nutriDsc: { show: true, label: '营养状况', edit: true, type: 'textarea' },
  defecaDsc: { show: true, label: '大小便(量/次数)', edit: true, type: 'textarea' },
  sleepDsc: { show: true, label: '睡眠', edit: true, type: 'textarea' },
  painDsc: { show: true, label: '疼痛', edit: true, type: 'textarea' },
  skinDsc: { show: true, label: '皮肤', edit: true, type: 'textarea' },
  oralDsc: { show: true, label: '口腔', edit: true, type: 'textarea' },
  muscleDsc: { show: true, label: '肌力/活动度', edit: true, type: 'textarea' },
  
  // 心理社会相关字段
  emoDsc: { show: true, label: '心里情绪', edit: true, type: 'textarea' },
  societyDsc: { show: true, label: '社会适应与社会支持', edit: true, type: 'textarea' },
  sexDsc: { show: true, label: '性与生殖', edit: true, type: 'textarea' },
  
  // 其他字段
  note: { show: true, label: '备注', edit: true, type: 'textarea' },
  
  // 系统字段
  createTime: { show: true, label: '创建时间', edit: false, type: 'datetime' },
  createBy: { show: true, label: '创建人', edit: false, type: 'text' },
  updateTime: { show: true, label: '修改时间', edit: false, type: 'datetime' },
  updateBy: { show: true, label: '修改人', edit: false, type: 'text' },
  id: { show: false, label: '主键ID', edit: false, type: 'text' }
}
